// 导出属于员工的路由规则
import Layout from '@/layout'

export default {

  path: '/subject', // 路径

  name: 'subject', // 给路由规则加一个name

  component: Layout, // 组件
 meta: {
      title: '学科管理', icon: 'eye-open'
  },
  redirect:'/subject/subject',
  children: [
    {
      path: '/subject/subject',
      component: () => import('@/views/subject/components/subject'),
      meta: {
        title: '学科信息', icon: 'form'
      }
    },
    {
      path: '/subject/directory',
      name:'/subject/directory',
      component: () => import('@/views/subject/components/directory'),
      meta: {
        title: '目录信息', icon: 'form'
      }
    },
    {
      path: '/subject/tag',
      name: '/subject/tag',
      component: () => import('@/views/subject/components/tag'),
      meta: {
        title: '标签信息', icon: 'form'
      }
    },
  ]
}

